﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace JXC.Core.Models
{
    /// <summary>
    /// 用户角色表
    /// </summary>
  public  class UserRoleInfos
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //关系编号
        public int Id { get; set; }
        //用户编号
        [ForeignKey("UserInfosId")]
        public Guid UserInfosId { get; set; }

        //角色编号
        [ForeignKey("RoleInfosId")]
        public Guid RoleInfosId { get; set; }
        //创建人
        [ForeignKey("UserInfosId")]
        public Guid Creator { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; }
        public UserInfos UserInfos { get; set; }
        public RoleInfos RoleInfos { get; set; }

    }
}
